﻿using System;
using System.Collections.Generic;
using System.Text;
using KKCai.Core;
using KKCai.App.DAL.DaoImpl;

namespace KKCai.Web.Page.Support
{
    public class Index : BasePage
    {
        public override string GetTemplatePath()
        {
            return "support/index.htm";
        }

        public override IDictionary<string, object> GetPageData()
        {
            TypeDao dao = new TypeDao();

            VelocityDictionary dict = new VelocityDictionary();

            dict.Add("Types", dao.Get(1).Children);
            dict.Add("Articles", new ArticleDao().Order("id", false, 10));

            return dict;
        }
    }
}
